//getter相当于 计算属性
const getters = {
  doneTodos: state => {
    return state.todos.filter(todo => todo.done);
  },
  doneTodosCount: (state, getters) => {
    return getters.doneTodos.length;
  },
  imgPrefix: state => state.imgPrefix,
  menu: state => state.menu,
  sysConfig: state => state.sysConfig,
};

export default getters;